package JavaBasic2_20200415;

import java.util.Scanner;

public class FuDianShuJiSuan1 {
	// 1:输入两个浮点数，计算他们加减乘除取余的结果。
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("请输入第一个浮点数：");
		double a = in.nextDouble();
		System.out.println("请输入第二个浮点数：");
		double b = in.nextDouble();

		System.out.println(a + "+" + b + "=" + (a + b));
		System.out.println(a + "-" + b + "=" + (a - b));
		System.out.println(a + "*" + b + "=" + (a * b));
		System.out.println(a + "/+" + b + "=" + (a / b) + "--" + (a % b));

	}

}
